﻿using System;
using System.Diagnostics;
using System.Resources;
using System.Windows;
using System.Windows.Markup;
using System.Windows.Navigation;
using Microsoft.Phone.Controls;
using Microsoft.Phone.Shell;
using Windows8Accelerator.Core.Xaml.Helpers;
using Catalogo.Portable.ViewModel;
using Catalogo.WindowsPhone.Views;
using Catalogo.Portable.ViewModel.Messages;

namespace Catalogo.WindowsPhone
{
    public partial class App : Application
    {
        public App()
        {
            InitializeComponent();
            AppHelperBase.Instance.Initialize();
            InitializeSettings();
        }

        private void InitializeSettings()
        {
            SettingsContractHelper.AddSettingsCommand(
             "Política de privacidade",
             () =>
             {
                 NavegarParaPaginaMessageHandler.NavegarParaPagina(new NavegarParaPagina("FlyoutTexto", TipoFlyoutTexto.PoliticaPrivacidade));
             });
            SettingsContractHelper.AddSettingsCommand(
             "Contato",
             () =>
             {
                 NavegarParaPaginaMessageHandler.NavegarParaPagina(new NavegarParaPagina("FlyoutTexto", TipoFlyoutTexto.Contato));
             });
            SettingsContractHelper.AddSettingsCommand(
             "Sobre",
             () =>
             {
                 NavegarParaPaginaMessageHandler.NavegarParaPagina(new NavegarParaPagina("FlyoutTexto", TipoFlyoutTexto.Sobre));
             });
        }
    }
}